package com.jobpass.common.model;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author jobpass
 * @since 2020-07-18
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="Journalism对象", description="")
public class Journalism implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "新闻标题")
    private String title;

    @ApiModelProperty(value = "新闻封面图")
    private String picture;

    @ApiModelProperty(value = "内容html")
    private String hContent;

    @ApiModelProperty(value = "内容markdown")
    private String mContent;

    @ApiModelProperty(value = "教师端id（只有宣传角色可以发布）")
    private Long teacherId;

    @ApiModelProperty(value = "新闻级别")
    private Integer rank;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date creatTime;

    @ApiModelProperty(value = "修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;


}
